Sometimes you might want to run the same script on several pages, without writing the script on each and every page.

To simplify this you can write a script in an external file, and save it with a .js file extension, like this:

document.write("This script is external")

#Title: How to Run an External JavaScript
#Element: 83: How to Run an External JavaScript
#Article: 78: JavaScript Where To ...